lldp_headers = [
  'lldp.h',
]

lldp_sources = [
  'lldp.cpp',
]


liblldp = shared_library(
  'dev_lldp',
  lldp_sources,
  include_directories: dev_inc_dir,
  dependencies: [libmcpp_dep, dbus_dep, glib_dep],
  install: true,
  install_dir: lib_dir,
)

liblldp_dep = declare_dependency(
  link_with: liblldp,
  include_directories: [dev_inc_dir],
  dependencies: [libmcpp_dep, dbus_dep, glib_dep],
)

install_headers(lldp_headers, install_dir: install_inc_dir / 'lldp')

if build_tests and meson_build
  custom_target(
    'copy_dev_lldp',
    output: 'copy_dev_lldp',
    command: ['cp', liblldp.full_path(), lib_dir],
    depends: liblldp,
    build_by_default: true,
  )
endif